package day_2023_4_to_7;


/**
 * @author haomin
 * @date 2023/05/10 23:42
 **/
public class Day5_10_Num1015 {
    class Solution {
        public int smallestRepunitDivByK(int k) {
            int p=0;
            for(int i=1;i<=k;i++){
                p=(p*10+1)%k;
                if(p==0){return i;}
            }
            return -1;
        }
    }
}